﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MiniBug.Models.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	LogOn
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

	   <h2>Log On</h2>
	<p>
		Please enter your username and password. <%= Html.ActionLink("Register", "Register") %> if you don't have an account.
	</p>
	<%= Html.ValidationSummary(true, ResourceViews.AccountStrings.UnSuccesfullLogon) %>

	<% using (Html.BeginForm()) { %>
		<div>
			<fieldset>
				<legend>Account Information</legend>
				
				<div class="editor-label">
					<%= Html.LabelFor(m => m.Login) %>
				</div>
				<div class="editor-field">
					<%= Html.TextBoxFor(m => m.Login) %>
					<%= Html.ValidationMessageFor(m => m.Login) %>
				</div>
				
				<div class="editor-label">
					<%= Html.LabelFor(m => m.Password) %>
				</div>
				<div class="editor-field">
					<%= Html.PasswordFor(m => m.Password) %>
					<%= Html.ValidationMessageFor(m => m.Password) %>
				</div>
				
				<div class="editor-label">
					<%= Html.CheckBoxFor(m => m.RememberMe) %>
					<%= Html.LabelFor(m => m.RememberMe) %>
				</div>

				<div class="editor-label">
					<%= Html.ActionLink("I forgot my password","ForgottenPassword") %>					
				</div>
				
				<p>
					<input type="submit" value="Log On" />
				</p>
			</fieldset>
		</div>
	<% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="CustomScript" runat="server">
</asp:Content>
